#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

void solve()
{
    int n; cin >> n;
    int be; cin >> be;
    be = abs(be);
    int cnt = 0;
    for(int i = 1; i < n; i++)
    {
        int x; cin >> x;
        if(x > -be && x < be) cnt++;
    }
    if(cnt > n / 2) cout << "NO" << endl;
    else cout << "YES" << endl;
}

int main()
{
    int t; cin >> t;
    while(t--)
    {
        solve();
    }
    return 0;
}